home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / info / xemacs.info-12.z / xemacs.info-12
Encoding:
GNU Info File  |  1998-05-21  |  48.5 KB  |  1,175 lines

  1. This is Info file ../../info/xemacs.info, produced by Makeinfo version
  2. 1.68 from the input file xemacs.texi.
  3.  
  4.    This file documents the XEmacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.  Copyright (C)
  7. 1991, 1992, 1993, 1994 Lucid, Inc.  Copyright (C) 1993, 1994 Sun
  8. Microsystems, Inc.  Copyright (C) 1995 Amdahl Corporation.
  9.  
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.  
  14.    Permission is granted to copy and distribute modified versions of
  15. this manual under the conditions for verbatim copying, provided also
  16. that the sections entitled "The GNU Manifesto", "Distribution" and "GNU
  17. General Public License" are included exactly as in the original, and
  18. provided that the entire resulting derived work is distributed under the
  19. terms of a permission notice identical to this one.
  20.  
  21.    Permission is granted to copy and distribute translations of this
  22. manual into another language, under the above conditions for modified
  23. versions, except that the sections entitled "The GNU Manifesto",
  24. "Distribution" and "GNU General Public License" may be included in a
  25. translation approved by the author instead of in the original English.
  26.  
  27. 
  28. File: xemacs.info,  Node: Lisp Interaction,  Next: External Lisp,  Prev: Lisp Debug,  Up: Running
  29.  
  30. Lisp Interaction Buffers
  31. ========================
  32.  
  33.    The buffer `*scratch*', which is selected when Emacs starts up, is
  34. provided for evaluating Lisp expressions interactively inside Emacs.
  35. Both the expressions you evaluate and their output goes in the buffer.
  36.  
  37.    The `*scratch*' buffer's major mode is Lisp Interaction mode, which
  38. is the same as Emacs-Lisp mode except for one command, <LFD>.  In
  39. Emacs-Lisp mode, <LFD> is an indentation command.  In Lisp Interaction
  40. mode, <LFD> is bound to `eval-print-last-sexp'.  This function reads
  41. the Lisp expression before point, evaluates it, and inserts the value
  42. in printed representation before point.
  43.  
  44.    The way to use the `*scratch*' buffer is to insert Lisp expressions
  45. at the end, ending each one with <LFD> so that it will be evaluated.
  46. The result is a complete typescript of the expressions you have
  47. evaluated and their values.
  48.  
  49.    The rationale for this feature is that Emacs must have a buffer when
  50. it starts up, but that buffer is not useful for editing files since a
  51. new buffer is made for every file that you visit.  The Lisp interpreter
  52. typescript is the most useful thing I can think of for the initial
  53. buffer to do.  `M-x lisp-interaction-mode' will put any buffer in Lisp
  54. Interaction mode.
  55.  
  56. 
  57. File: xemacs.info,  Node: External Lisp,  Prev: Lisp Interaction,  Up: Running
  58.  
  59. Running an External Lisp
  60. ========================
  61.  
  62.    Emacs has facilities for running programs in other Lisp systems.
  63. You can run a Lisp process as an inferior of Emacs, and pass
  64. expressions to it to be evaluated.  You can also pass changed function
  65. definitions directly from the Emacs buffers in which you edit the Lisp
  66. programs to the inferior Lisp process.
  67.  
  68.    To run an inferior Lisp process, type `M-x run-lisp'.  This runs the
  69. program named `lisp', the same program you would run by typing `lisp'
  70. as a shell command, with both input and output going through an Emacs
  71. buffer named `*lisp*'.  In other words, any "terminal output" from Lisp
  72. will go into the buffer, advancing point, and any "terminal input" for
  73. Lisp comes from text in the buffer.  To give input to Lisp, go to the
  74. end of the buffer and type the input, terminated by <RET>.  The
  75. `*lisp*' buffer is in Inferior Lisp mode, which has all the special
  76. characteristics of Lisp mode and Shell mode (*note Shell Mode::.).
  77.  
  78.    Use Lisp mode to run the source files of programs in external Lisps.
  79. You can select this mode with `M-x lisp-mode'.  It is used automatically
  80. for files whose names end in `.l' or `.lisp', as most Lisp systems
  81. usually expect.
  82.  
  83.    When you edit a function in a Lisp program you are running, the
  84. easiest way to send the changed definition to the inferior Lisp process
  85. is the key `C-M-x'.  In Lisp mode, this key runs the function
  86. `lisp-send-defun', which finds the defun around or following point and
  87. sends it as input to the Lisp process.  (Emacs can send input to any
  88. inferior process regardless of what buffer is current.)
  89.  
  90.    Contrast the meanings of `C-M-x' in Lisp mode (for editing programs
  91. to be run in another Lisp system) and Emacs-Lisp mode (for editing Lisp
  92. programs to be run in Emacs): in both modes it has the effect of
  93. installing the function definition that point is in, but the way of
  94. doing so is different according to where the relevant Lisp environment
  95. is found.  *Note Lisp Modes::.
  96.  
  97. 
  98. File: xemacs.info,  Node: Abbrevs,  Next: Picture,  Prev: Running,  Up: Top
  99.  
  100. Abbrevs
  101. *******
  102.  
  103.    An "abbrev" is a word which "expands" into some different text.
  104. Abbrevs are defined by the user to expand in specific ways.  For
  105. example, you might define `foo' as an abbrev expanding to `find outer
  106. otter'.  With this abbrev defined, you would be able to get `find outer
  107. otter ' into the buffer by typing `f o o <SPC>'.
  108.  
  109.    Abbrevs expand only when Abbrev mode (a minor mode) is enabled.
  110. Disabling Abbrev mode does not cause abbrev definitions to be discarded,
  111. but they do not expand until Abbrev mode is enabled again.  The command
  112. `M-x abbrev-mode' toggles Abbrev mode; with a numeric argument, it
  113. turns Abbrev mode on if the argument is positive, off otherwise.  *Note
  114. Minor Modes::.  `abbrev-mode' is also a variable; Abbrev mode is on
  115. when the variable is non-`nil'.  The variable `abbrev-mode'
  116. automatically becomes local to the current buffer when it is set.
  117.  
  118.    Abbrev definitions can be "mode-specific"--active only in one major
  119. mode.  Abbrevs can also have "global" definitions that are active in
  120. all major modes.  The same abbrev can have a global definition and
  121. various mode-specific definitions for different major modes.  A
  122. mode-specific definition for the current major mode overrides a global
  123. definition.
  124.  
  125.    You can define Abbrevs interactively during an editing session.  You
  126. can also save lists of abbrev definitions in files and reload them in
  127. later sessions.  Some users keep extensive lists of abbrevs that they
  128. load in every session.
  129.  
  130.    A second kind of abbreviation facility is called the "dynamic
  131. expansion".  Dynamic abbrev expansion happens only when you give an
  132. explicit command and the result of the expansion depends only on the
  133. current contents of the buffer.  *Note Dynamic Abbrevs::.
  134.  
  135. * Menu:
  136.  
  137. * Defining Abbrevs::  Defining an abbrev, so it will expand when typed.
  138. * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
  139. * Editing Abbrevs::   Viewing or editing the entire list of defined abbrevs.
  140. * Saving Abbrevs::    Saving the entire list of abbrevs for another session.
  141. * Dynamic Abbrevs::   Abbreviations for words already in the buffer.
  142.  
  143. 
  144. File: xemacs.info,  Node: Defining Abbrevs,  Next: Expanding Abbrevs,  Prev: Abbrevs,  Up: Abbrevs
  145.  
  146. Defining Abbrevs
  147. ================
  148.  
  149. `C-x a g'
  150.      Define an abbrev to expand into some text before point
  151.      (`add-global-abbrev').
  152.  
  153. `C-x a l'
  154.      Similar, but define an abbrev available only in the current major
  155.      mode (`add-mode-abbrev').
  156.  
  157. `C-x a i g'
  158.      Define a word in the buffer as an abbrev
  159.      (`inverse-add-global-abbrev').
  160.  
  161. `C-x a i l'
  162.      Define a word in the buffer as a mode-specific abbrev
  163.      (`inverse-add-mode-abbrev').
  164.  
  165. `M-x kill-all-abbrevs'
  166.      After this command, no abbrev definitions remain in effect.
  167.  
  168.    The usual way to define an abbrev is to enter the text you want the
  169. abbrev to expand to, position point after it, and type `C-x a g'
  170. (`add-global-abbrev').  This reads the abbrev itself using the
  171. minibuffer, and then defines it as an abbrev for one or more words
  172. before point.  Use a numeric argument to say how many words before point
  173. should be taken as the expansion.  For example, to define the abbrev
  174. `foo' as in the example above, insert the text `find outer otter', then
  175. type
  176. `C-u 3 C-x a g f o o <RET>'.
  177.  
  178.    An argument of zero to `C-x a g' means to use the contents of the
  179. region as the expansion of the abbrev being defined.
  180.  
  181.    The command `C-x a l' (`add-mode-abbrev') is similar, but defines a
  182. mode-specific abbrev.  Mode-specific abbrevs are active only in a
  183. particular major mode.  `C-x a l' defines an abbrev for the major mode
  184. in effect at the time `C-x a l' is typed.  The arguments work the same
  185. way they do for `C-x a g'.
  186.  
  187.    If the text of an abbrev you want is already in the buffer instead of
  188. the expansion, use command `C-x a i g' (`inverse-add-global-abbrev')
  189. instead of `C-x a g', or use `C-x a i l' (`inverse-add-mode-abbrev')
  190. instead of `C-x a l'.  These commands are called "inverse" because they
  191. invert the meaning of the argument found in the buffer and the argument
  192. read using the minibuffer.
  193.  
  194.    To change the definition of an abbrev, just add the new definition.
  195. You will be asked to confirm if the abbrev has a prior definition.  To
  196. remove an abbrev definition, give a negative argument to `C-x a g' or
  197. `C-x a l'.  You must choose the command to specify whether to kill a
  198. global definition or a mode-specific definition for the current mode,
  199. since those two definitions are independent for one abbrev.
  200.  
  201.    `M-x kill-all-abbrevs' removes all existing abbrev definitions.
  202.  
  203. 
  204. File: xemacs.info,  Node: Expanding Abbrevs,  Next: Editing Abbrevs,  Prev: Defining Abbrevs,  Up: Abbrevs
  205.  
  206. Controlling Abbrev Expansion
  207. ============================
  208.  
  209.    An abbrev expands whenever it is in a buffer just before point and
  210. you type a self-inserting punctuation character (<SPC>, comma, etc.).
  211. Most often an abbrev is used by inserting the abbrev followed by
  212. punctuation.
  213.  
  214.    Abbrev expansion preserves case; thus, `foo' expands into `find
  215. outer otter', `Foo' into `Find outer otter', and `FOO' into `FIND OUTER
  216. OTTER' or `Find Outer Otter' according to the variable
  217. `abbrev-all-caps' (a non-`nil' value chooses the first of the two
  218. expansions).
  219.  
  220.    Two commands are available to control abbrev expansion:
  221.  
  222. `M-''
  223.      Separate a prefix from a following abbrev to be expanded
  224.      (`abbrev-prefix-mark').
  225.  
  226. `C-x a e'
  227.      Expand the abbrev before point (`expand-abbrev').  This is
  228.      effective even when Abbrev mode is not enabled.
  229.  
  230. `M-x unexpand-abbrev'
  231.      Undo last abbrev expansion.
  232.  
  233. `M-x expand-region-abbrevs'
  234.      Expand some or all abbrevs found in the region.
  235.  
  236.    You may wish to expand an abbrev with a prefix attached.  For
  237. example, if `cnst' expands into `construction', you may want to use it
  238. to enter `reconstruction'.  It does not work to type `recnst', because
  239. that is not necessarily a defined abbrev.  Instead, you can use the
  240. command `M-'' (`abbrev-prefix-mark') between the prefix `re' and the
  241. abbrev `cnst'.  First, insert `re'.  Then type `M-''; this inserts a
  242. minus sign in the buffer to indicate that it has done its work.  Then
  243. insert the abbrev `cnst'.  The buffer now contains `re-cnst'.  Now
  244. insert a punctuation character to expand the abbrev `cnst' into
  245. `construction'.  The minus sign is deleted at this point by `M-''.  The
  246. resulting text is the desired `reconstruction'.
  247.  
  248.    If you actually want the text of the abbrev in the buffer, rather
  249. than its expansion, insert the following punctuation with `C-q'.  Thus,
  250. `foo C-q -' leaves `foo-' in the buffer.
  251.  
  252.    If you expand an abbrev by mistake, you can undo the expansion
  253. (replace the expansion by the original abbrev text) with `M-x
  254. unexpand-abbrev'.  You can also use `C-_' (`undo') to undo the
  255. expansion; but that will first undo the insertion of the punctuation
  256. character.
  257.  
  258.    `M-x expand-region-abbrevs' searches through the region for defined
  259. abbrevs, and  offers to replace each one it finds with its expansion.
  260. This command is useful if you have typed text using abbrevs but forgot
  261. to turn on Abbrev mode first.  It may also be useful together with a
  262. special set of abbrev definitions for making several global
  263. replacements at once.  The command is effective even if Abbrev mode is
  264. not enabled.
  265.  
  266. 
  267. File: xemacs.info,  Node: Editing Abbrevs,  Next: Saving Abbrevs,  Prev: Expanding Abbrevs,  Up: Abbrevs
  268.  
  269. Examining and Editing Abbrevs
  270. =============================
  271.  
  272. `M-x list-abbrevs'
  273.      Print a list of all abbrev definitions.
  274.  
  275. `M-x edit-abbrevs'
  276.      Edit a list of abbrevs; you can add, alter, or remove definitions.
  277.  
  278.    The output from `M-x list-abbrevs' looks like this:
  279.  
  280.      (lisp-mode-abbrev-table)
  281.      "dk"           0    "define-key"
  282.      (global-abbrev-table)
  283.      "dfn"           0    "definition"
  284.  
  285. (Some blank lines of no semantic significance, and some other abbrev
  286. tables, have been omitted.)
  287.  
  288.    A line containing a name in parentheses is the header for abbrevs in
  289. a particular abbrev table; `global-abbrev-table' contains all the global
  290. abbrevs, and the other abbrev tables that are named after major modes
  291. contain the mode-specific abbrevs.
  292.  
  293.    Within each abbrev table, each non-blank line defines one abbrev.
  294. The word at the beginning is the abbrev.  The number that appears is
  295. the number of times the abbrev has been expanded.  Emacs keeps track of
  296. this to help you see which abbrevs you actually use, in case you want
  297. to eliminate those that you don't use often.  The string at the end of
  298. the line is the expansion.
  299.  
  300.    `M-x edit-abbrevs' allows you to add, change or kill abbrev
  301. definitions by editing a list of them in an Emacs buffer.  The list has
  302. the format described above.  The buffer of abbrevs is called
  303. `*Abbrevs*', and is in Edit-Abbrevs mode.  This mode redefines the key
  304. `C-c C-c' to install the abbrev definitions as specified in the buffer.
  305. The  `edit-abbrevs-redefine' command does this.  Any abbrevs not
  306. described in the buffer are eliminated when this is done.
  307.  
  308.    `edit-abbrevs' is actually the same as `list-abbrevs', except that
  309. it selects the buffer `*Abbrevs*' whereas `list-abbrevs' merely
  310. displays it in another window.
  311.  
  312. 
  313. File: xemacs.info,  Node: Saving Abbrevs,  Next: Dynamic Abbrevs,  Prev: Editing Abbrevs,  Up: Abbrevs
  314.  
  315. Saving Abbrevs
  316. ==============
  317.  
  318.    These commands allow you to keep abbrev definitions between editing
  319. sessions.
  320.  
  321. `M-x write-abbrev-file'
  322.      Write a file describing all defined abbrevs.
  323.  
  324. `M-x read-abbrev-file'
  325.      Read such an abbrev file and define abbrevs as specified there.
  326.  
  327. `M-x quietly-read-abbrev-file'
  328.      Similar, but do not display a message about what is going on.
  329.  
  330. `M-x define-abbrevs'
  331.      Define abbrevs from buffer.
  332.  
  333. `M-x insert-abbrevs'
  334.      Insert all abbrevs and their expansions into the buffer.
  335.  
  336.    Use `M-x write-abbrev-file' to save abbrev definitions for use in a
  337. later session.  The command reads a file name using the minibuffer and
  338. writes a description of all current abbrev definitions into the
  339. specified file.  The text stored in the file looks like the output of
  340. `M-x list-abbrevs'.
  341.  
  342.    `M-x read-abbrev-file' prompts for a file name using the minibuffer
  343. and reads the specified file, defining abbrevs according to its
  344. contents.  `M-x quietly-read-abbrev-file' is the same but does not
  345. display a message in the echo area; it is actually useful primarily in
  346. the `.emacs' file.  If you give an empty argument to either of these
  347. functions, the file name Emacs uses is the value of the variable
  348. `abbrev-file-name', which is by default `"~/.abbrev_defs"'.
  349.  
  350.    Emacs offers to save abbrevs automatically if you have changed any of
  351. them, whenever it offers to save all files (for `C-x s' or `C-x C-c').
  352. Set the variable `save-abbrevs' to `nil' to inhibit this feature.
  353.  
  354.    The commands `M-x insert-abbrevs' and `M-x define-abbrevs' are
  355. similar to the previous commands but work on text in an Emacs buffer.
  356. `M-x insert-abbrevs' inserts text into the current buffer before point,
  357. describing all current abbrev definitions; `M-x define-abbrevs' parses
  358. the entire current buffer and defines abbrevs accordingly.
  359.  
  360. 
  361. File: xemacs.info,  Node: Dynamic Abbrevs,  Prev: Saving Abbrevs,  Up: Abbrevs
  362.  
  363. Dynamic Abbrev Expansion
  364. ========================
  365.  
  366.    The abbrev facility described above operates automatically as you
  367. insert text, but all abbrevs must be defined explicitly.  By contrast,
  368. "dynamic abbrevs" allow the meanings of abbrevs to be determined
  369. automatically from the contents of the buffer, but dynamic abbrev
  370. expansion happens only when you request it explicitly.
  371.  
  372. `M-/'
  373.      Expand the word in the buffer before point as a "dynamic abbrev",
  374.      by searching in the buffer for words starting with that
  375.      abbreviation (`dabbrev-expand').
  376.  
  377.    For example, if the buffer contains `does this follow ' and you type
  378. `f o M-/', the effect is to insert `follow' because that is the last
  379. word in the buffer that starts with `fo'.  A numeric argument to `M-/'
  380. says to take the second, third, etc. distinct expansion found looking
  381. backward from point.  Repeating `M-/' searches for an alternative
  382. expansion by looking farther back.  After the entire buffer before
  383. point has been considered, the buffer after point is searched.
  384.  
  385.    Dynamic abbrev expansion is completely independent of Abbrev mode;
  386. the expansion of a word with `M-/' is completely independent of whether
  387. it has a definition as an ordinary abbrev.
  388.  
  389. 
  390. File: xemacs.info,  Node: Picture,  Next: Sending Mail,  Prev: Abbrevs,  Up: Top
  391.  
  392. Editing Pictures
  393. ****************
  394.  
  395.    If you want to create a picture made out of text characters (for
  396. example, a picture of the division of a register into fields, as a
  397. comment in a program), use the command `edit-picture' to enter Picture
  398. mode.
  399.  
  400.    In Picture mode, editing is based on the "quarter-plane" model of
  401. text.  In this model, the text characters lie studded on an area that
  402. stretches infinitely far to the right and downward.  The concept of the
  403. end of a line does not exist in this model; the most you can say is
  404. where the last non-blank character on the line is found.
  405.  
  406.    Of course, Emacs really always considers text as a sequence of
  407. characters, and lines really do have ends.  But in Picture mode most
  408. frequently-used keys are rebound to commands that simulate the
  409. quarter-plane model of text.  They do this by inserting spaces or by
  410. converting tabs to spaces.
  411.  
  412.    Most of the basic editing commands of Emacs are redefined by Picture
  413. mode to do essentially the same thing but in a quarter-plane way.  In
  414. addition, Picture mode defines various keys starting with the `C-c'
  415. prefix to run special picture editing commands.
  416.  
  417.    One of these keys, `C-c C-c', is pretty important.  Often a picture
  418. is part of a larger file that is usually edited in some other major
  419. mode.  `M-x edit-picture' records the name of the previous major mode.
  420. You can then use the `C-c C-c' command (`picture-mode-exit') to restore
  421. that mode.  `C-c C-c' also deletes spaces from the ends of lines,
  422. unless you give it a numeric argument.
  423.  
  424.    The commands used in Picture mode all work in other modes (provided
  425. the `picture' library is loaded), but are only  bound to keys in
  426. Picture mode.  Note that the descriptions below talk of moving "one
  427. column" and so on, but all the picture mode commands handle numeric
  428. arguments as their normal equivalents do.
  429.  
  430.    Turning on Picture mode calls the value of the variable
  431. `picture-mode-hook' as a function, with no arguments, if that value
  432. exists and is non-`nil'.
  433.  
  434. * Menu:
  435.  
  436. * Basic Picture::         Basic concepts and simple commands of Picture Mode.
  437. * Insert in Picture::     Controlling direction of cursor motion
  438.                            after "self-inserting" characters.
  439. * Tabs in Picture::       Various features for tab stops and indentation.
  440. * Rectangles in Picture:: Clearing and superimposing rectangles.
  441.  
  442. 
  443. File: xemacs.info,  Node: Basic Picture,  Next: Insert in Picture,  Prev: Picture,  Up: Picture
  444.  
  445. Basic Editing in Picture Mode
  446. =============================
  447.  
  448.    Most keys do the same thing in Picture mode that they usually do,
  449. but do it in a quarter-plane style.  For example, `C-f' is rebound to
  450. run `picture-forward-column', which moves point one column to the
  451. right, by inserting a space if necessary, so that the actual end of the
  452. line makes no difference.  `C-b' is rebound to run
  453. `picture-backward-column', which always moves point left one column,
  454. converting a tab to multiple spaces if necessary.  `C-n' and `C-p' are
  455. rebound to run `picture-move-down' and `picture-move-up', which can
  456. either insert spaces or convert tabs as necessary to make sure that
  457. point stays in exactly the same column.  `C-e' runs
  458. `picture-end-of-line', which moves to after the last non-blank
  459. character on the line.  There was no need to change `C-a', as the choice
  460. of screen model does not affect beginnings of lines.
  461.  
  462.    Insertion of text is adapted to the quarter-plane screen model
  463. through the use of Overwrite mode (*note Minor Modes::.).
  464. Self-inserting characters replace existing text, column by column,
  465. rather than pushing existing text to the right.  <RET> runs
  466. `picture-newline', which just moves to the beginning of the following
  467. line so that new text will replace that line.
  468.  
  469.    Text is erased instead of deleted and killed.  <DEL>
  470. (`picture-backward-clear-column') replaces the preceding character with
  471. a space rather than removing it.  `C-d' (`picture-clear-column') does
  472. the same in a forward direction.  `C-k' (`picture-clear-line') really
  473. kills the contents of lines, but never removes the newlines from a
  474. buffer.
  475.  
  476.    To do actual insertion, you must use special commands.  `C-o'
  477. (`picture-open-line') creates a blank line, but does so after the
  478. current line; it never splits a line.  `C-M-o', `split-line', makes
  479. sense in Picture mode, so it remains unchanged.  <LFD>
  480. (`picture-duplicate-line') inserts another line with the same contents
  481. below the current line.
  482.  
  483.    To actually delete parts of the picture, use `C-w', or with `C-c
  484. C-d' (which is defined as `delete-char', as `C-d' is in other modes),
  485. or with one of the picture rectangle commands (*note Rectangles in
  486. Picture::.).
  487.  
  488. 
  489. File: xemacs.info,  Node: Insert in Picture,  Next: Tabs in Picture,  Prev: Basic Picture,  Up: Picture
  490.  
  491. Controlling Motion After Insert
  492. ===============================
  493.  
  494.    Since "self-inserting" characters just overwrite and move point in
  495. Picture mode, there is no essential restriction on how point should be
  496. moved.  Normally point moves right, but you can specify any of the eight
  497. orthogonal or diagonal directions for motion after a "self-inserting"
  498. character.  This is useful for drawing lines in the buffer.
  499.  
  500. `C-c <'
  501.      Move left after insertion (`picture-movement-left').
  502.  
  503. `C-c >'
  504.      Move right after insertion (`picture-movement-right').
  505.  
  506. `C-c ^'
  507.      Move up after insertion (`picture-movement-up').
  508.  
  509. `C-c .'
  510.      Move down after insertion (`picture-movement-down').
  511.  
  512. `C-c `'
  513.      Move up and left ("northwest") after insertion
  514.      (`picture-movement-nw').
  515.  
  516. `C-c ''
  517.      Move up and right ("northeast") after insertion
  518.      (`picture-movement-ne').
  519.  
  520. `C-c /'
  521.      Move down and left ("southwest") after insertion
  522.      (`picture-movement-sw').
  523.  
  524. `C-c \'
  525.      Move down and right ("southeast") after insertion
  526.      (`picture-movement-se').
  527.  
  528.    Two motion commands move based on the current Picture insertion
  529. direction.  The command `C-c C-f' (`picture-motion') moves in the same
  530. direction as motion after "insertion" currently does, while `C-c C-b'
  531. (`picture-motion-reverse') moves in the opposite direction.
  532.  
  533. 
  534. File: xemacs.info,  Node: Tabs in Picture,  Next: Rectangles in Picture,  Prev: Insert in Picture,  Up: Picture
  535.  
  536. Picture Mode Tabs
  537. =================
  538.  
  539.    Two kinds of tab-like action are provided in Picture mode.
  540. Context-based tabbing is done with `M-<TAB>' (`picture-tab-search').
  541. With no argument, it moves to a point underneath the next "interesting"
  542. character that follows whitespace in the previous non-blank line.
  543. "Next" here means "appearing at a horizontal position greater than the
  544. one point starts out at".  With an argument, as in `C-u M-<TAB>', the
  545. command moves to the next such interesting character in the current
  546. line.  `M-<TAB>' does not change the text; it only moves point.
  547. "Interesting" characters are defined by the variable
  548. `picture-tab-chars', which contains a string of characters considered
  549. interesting.  Its default value is `"!-~"'.
  550.  
  551.    <TAB> itself runs `picture-tab', which operates based on the current
  552. tab stop settings; it is the Picture mode equivalent of
  553. `tab-to-tab-stop'.  Without arguments it just moves point, but with a
  554. numeric argument it clears the text that it moves over.
  555.  
  556.    The context-based and tab-stop-based forms of tabbing are brought
  557. together by the command `C-c <TAB>' (`picture-set-tab-stops'.)  This
  558. command sets the tab stops to the positions which `M-<TAB>' would
  559. consider significant in the current line.  If you use this command with
  560. <TAB>, you can get the effect of context-based tabbing.  But `M-<TAB>'
  561. is more convenient in the cases where it is sufficient.
  562.  
  563. 
  564. File: xemacs.info,  Node: Rectangles in Picture,  Prev: Tabs in Picture,  Up: Picture
  565.  
  566. Picture Mode Rectangle Commands
  567. ===============================
  568.  
  569.    Picture mode defines commands for working on rectangular pieces of
  570. the text in ways that fit with the quarter-plane model.  The standard
  571. rectangle commands may also be useful (*note Rectangles::.).
  572.  
  573. `C-c C-k'
  574.      Clear out the region-rectangle (`picture-clear-rectangle').  With
  575.      argument, kill it.
  576.  
  577. `C-c C-w R'
  578.      Similar but save rectangle contents in register R first
  579.      (`picture-clear-rectangle-to-register').
  580.  
  581. `C-c C-y'
  582.      Copy last killed rectangle into the buffer by overwriting, with
  583.      upper left corner at point (`picture-yank-rectangle').  With
  584.      argument, insert instead.
  585.  
  586. `C-c C-x R'
  587.      Similar, but use the rectangle in register R
  588.      (`picture-yank-rectangle-from-register').
  589.  
  590.    The picture rectangle commands `C-c C-k' (`picture-clear-rectangle')
  591. and `C-c C-w' (`picture-clear-rectangle-to-register') differ from the
  592. standard rectangle commands in that they normally clear the rectangle
  593. instead of deleting it; this is analogous with the way `C-d' is changed
  594. in Picture mode.
  595.  
  596.    However, deletion of rectangles can be useful in Picture mode, so
  597. these commands delete the rectangle if given a numeric argument.
  598.  
  599.    The Picture mode commands for yanking rectangles differ from the
  600. standard ones in overwriting instead of inserting.  This is the same
  601. way that Picture mode insertion of other text is different from other
  602. modes.  `C-c C-y' (`picture-yank-rectangle') inserts (by overwriting)
  603. the rectangle that was most recently killed, while `C-c C-x'
  604. (`picture-yank-rectangle-from-register') does for the rectangle found
  605. in a specified register.
  606.  
  607.    Since most region commands in Picture mode operate on rectangles,
  608. when you select a region of text with the mouse in Picture mode, it is
  609. highlighted as a rectangle.
  610.  
  611. 
  612. File: xemacs.info,  Node: Sending Mail,  Next: Reading Mail,  Prev: Picture,  Up: Top
  613.  
  614. Sending Mail
  615. ************
  616.  
  617.    To send a message in Emacs, start by typing the command (`C-x m') to
  618. select and initialize the `*mail*' buffer.  You can then edit the text
  619. and headers of the message in the mail buffer, and type the command
  620. (`C-c C-c') to send the message.
  621.  
  622. `C-x m'
  623.      Begin composing a message to send (`mail').
  624.  
  625. `C-x 4 m'
  626.      Likewise, but display the message in another window
  627.      (`mail-other-window').
  628.  
  629. `C-c C-c'
  630.      In Mail mode, send the message and switch to another buffer
  631.      (`mail-send-and-exit').
  632.  
  633.    The command `C-x m' (`mail') selects a buffer named `*mail*' and
  634. initializes it with the skeleton of an outgoing message.  `C-x 4 m'
  635. (`mail-other-window') selects the `*mail*' buffer in a different
  636. window, leaving the previous current buffer visible.
  637.  
  638.    Because the buffer for mail composition is an ordinary Emacs buffer,
  639. you can switch to other buffers while in the middle of composing mail,
  640. and switch back later (or never).  If you use the `C-x m' command again
  641. when you have been composing another message but have not sent it, a
  642. new mail buffer will be created; in this way, you can compose multiple
  643. messages at once.  You can switch back to and complete an unsent
  644. message by using the normal buffer selection mechanisms.
  645.  
  646.    `C-u C-x m' is another way to switch back to a message in progress:
  647. it will search for an existing, unsent mail message buffer and select
  648. it.
  649.  
  650. * Menu:
  651.  
  652. * Format: Mail Format.    Format of the mail being composed.
  653. * Headers: Mail Headers.  Details of allowed mail header fields.
  654. * Mode: Mail Mode.        Special commands for editing mail being composed.
  655.  
  656. 
  657. File: xemacs.info,  Node: Mail Format,  Next: Mail Headers,  Prev: Sending Mail,  Up: Sending Mail
  658.  
  659. The Format of the Mail Buffer
  660. =============================
  661.  
  662.    In addition to the "text" or contents, a message has "header
  663. fields", which say who sent it, when, to whom, why, and so on.  Some
  664. header fields, such as the date and sender, are created automatically
  665. after the message is sent.  Others, such as the recipient names, must
  666. be specified by you in order to send the message properly.
  667.  
  668.    Mail mode provides a few commands to help you edit some header
  669. fields, and some are preinitialized in the buffer automatically at
  670. times.  You can insert or edit any header fields using ordinary editing
  671. commands.
  672.  
  673.    The line in the buffer that says:
  674.  
  675.      --text follows this line--
  676.  
  677. is a special delimiter that separates the headers you have specified
  678. from the text.  Whatever follows this line is the text of the message;
  679. the headers precede it.  The delimiter line itself does not appear in
  680. the message actually sent.  The text used for the delimiter line is
  681. controlled by the variable `mail-header-separator'.
  682.  
  683.    Here is an example of what the headers and text in the `*mail*'
  684. buffer might look like.
  685.  
  686.      To: rms@mc
  687.      CC: mly@mc, rg@oz
  688.      Subject: The XEmacs User's Manual
  689.      --Text follows this line--
  690.      Please ignore this message.
  691.  
  692. 
  693. File: xemacs.info,  Node: Mail Headers,  Next: Mail Mode,  Prev: Mail Format,  Up: Sending Mail
  694.  
  695. Mail Header Fields
  696. ==================
  697.  
  698.    There are several header fields you can use in the `*mail*' buffer.
  699. Each header field starts with a field name at the beginning of a line,
  700. terminated by a colon.  It does not matter whether you use upper or
  701. lower case in the field name.  After the colon and optional whitespace
  702. comes the contents of the field.
  703.  
  704. `To'
  705.      This field contains the mailing addresses of the message.
  706.  
  707. `Subject'
  708.      The contents of the `Subject' field should be a piece of text that
  709.      says what the message is about.  Subject fields are useful because
  710.      most mail-reading programs can provide a summary of messages,
  711.      listing the subject of each message but not its text.
  712.  
  713. `CC'
  714.      This field contains additional mailing addresses to send the
  715.      message to, but whose readers should not regard the message as
  716.      addressed to them.
  717.  
  718. `BCC'
  719.      This field contains additional mailing addresses to send the
  720.      message to, but which should not appear in the header of the
  721.      message actually sent.
  722.  
  723. `FCC'
  724.      This field contains the name of one file (in Unix mail file
  725.      format) to which a copy of the message should be appended when the
  726.      message is sent.
  727.  
  728. `From'
  729.      Use the `From' field to say who you are, when the account you are
  730.      using to send the mail is not your own.  The contents of the
  731.      `From' field should be a valid mailing address, since replies will
  732.      normally go there.
  733.  
  734. `Reply-To'
  735.      Use the `Reply-To' field to direct replies to a different address,
  736.      not your own. `From' and `Reply-To' have the same effect on where
  737.      replies go, but they convey a different meaning to the person who
  738.      reads the message.
  739.  
  740. `In-Reply-To'
  741.      This field contains a piece of text describing a message you are
  742.      replying to.  Some mail systems can use the information to
  743.      correlate related pieces of mail.  This field is normally filled
  744.      in by your mail handling package when you are replying to a
  745.      message and you never need to think about it.
  746.  
  747. The `To', `CC', `BCC' and `FCC' fields can appear any number of times,
  748. to specify many places to send the message.
  749.  
  750. The `To', `CC', and `BCC', fields can have continuation lines.  All the
  751. lines starting with whitespace, following the line on which the field
  752. starts, are considered part of the field.  For example,
  753.  
  754.      To: foo@here, this@there,
  755.        me@gnu.cambridge.mass.usa.earth.spiral3281
  756.  
  757. If you have a `~/.mailrc' file, Emacs scans it for mail aliases the
  758. first time you try to send mail in an Emacs session.  Emacs expands
  759. aliases found in the `To', `CC', and `BCC' fields where appropriate.
  760. You can set the variable `mail-abbrev-mailrc-file' to the name of the
  761. file with mail aliases.  If `nil', `~/.mailrc' is used.
  762.  
  763.    Your `.mailrc' file ensures that word-abbrevs are defined for each
  764. of your mail aliases when point is in a `To', `CC', `BCC', or `From'
  765. field.  The aliases are defined in your `.mailrc' file or in a file
  766. specified by the MAILRC environment variable if it exists.  Your mail
  767. aliases expand any time you type a word-delimiter at the end of an
  768. abbreviation.
  769.  
  770.    In this version of Emacs, what you see is what you get: in contrast
  771. to some other versions, no abbreviations are expanded after you have
  772. sent the mail.  This means you don't suffer the annoyance of having the
  773. system do things behind your back -- if the system rewrites an address
  774. you typed, you know it immediately, instead of after the mail has been
  775. sent and it's too late to do anything about it.  For example, you will
  776. never again be in trouble because you forgot to delete an old alias
  777. from your `.mailrc' and a new local user is given a userid which
  778. conflicts with one of your aliases.
  779.  
  780.    Your mail alias abbrevs are in effect only when point is in an
  781. appropriate header field. The mail aliases will not expand in the body
  782. of the message, or in other header fields.  The default mode-specific
  783. abbrev table `mail-mode-abbrev-table' is used instead if defined.  That
  784. means if you have been using mail-mode specific abbrevs, this code will
  785. not adversely affect you.  You can control which header fields the
  786. abbrevs are used in by changing the variable `mail-abbrev-mode-regexp'.
  787.  
  788.    If auto-fill mode is on, abbrevs wrap at commas instead of at word
  789. boundaries, and header continuation lines will be properly indented.
  790.  
  791.    You can also insert a mail alias with
  792. `mail-interactive-insert-alias'.  This function, which is bound to `C-c
  793. C-a', prompts you for an alias (with completion) and inserts its
  794. expansion at point.
  795.  
  796.    In this version of Emacs, it is possible to have lines like the
  797. following in your `.mailrc' file:
  798.  
  799.           alias someone "John Doe <doe@quux.com>"
  800.  
  801.    That is, if you want an address to have embedded spaces, simply
  802. surround it with double-quotes.  The quotes are necessary because the
  803. format of the `.mailrc' file uses spaces as address delimiters.
  804.  
  805.    Aliases in the `.mailrc' file may be nested. For example, assume you
  806. define aliases like:
  807.           alias group1 fred ethel
  808.           alias group2 larry curly moe
  809.           alias everybody group1 group2
  810.  
  811.    When you now type `everybody' on the `To' line, it will expand to:
  812.           fred, ethyl, larry, curly, moe
  813.  
  814.    Aliases may contain forward references; the alias of `everybody' in
  815. the example above can precede the aliases of `group1' and `group2'.
  816.  
  817.    In this version of Emacs, you can use the `source' `.mailrc' command
  818. for reading aliases from some other file as well.
  819.  
  820.    Aliases may contain hyphens, as in `"alias foo-bar foo@bar"', even
  821. though word-abbrevs normally cannot contain hyphens.
  822.  
  823.    To read in the contents of another `.mailrc'-type file from Emacs,
  824. use the command `M-x merge-mail-aliases'.  The `rebuild-mail-aliases'
  825. command is similar, but deletes existing aliases first.
  826.  
  827.    If you want multiple addresses separated by a string other than `,'
  828. (a comma), then set the variable `mail-alias-seperator-string' to it.
  829. This has to be a comma bracketed by whitespace if you want any kind  of
  830. reasonable behavior.
  831.  
  832.    If the variable `mail-archive-file-name' is non-`nil', it should be
  833. a string naming a file.  Each time you start to edit a message to send,
  834. an `FCC' field is entered for that file.  Unless you remove the `FCC'
  835. field, every message is written into that file when it is sent.
  836.  
  837. 
  838. File: xemacs.info,  Node: Mail Mode,  Prev: Mail Headers,  Up: Sending Mail
  839.  
  840. Mail Mode
  841. =========
  842.  
  843.    The major mode used in the `*mail*' buffer is Mail mode.  Mail mode
  844. is similar to Text mode, but several commands are provided on the `C-c'
  845. prefix.  These commands all deal specifically with editing or sending
  846. the message.
  847.  
  848. `C-c C-s'
  849.      Send the message, and leave the `*mail*' buffer selected
  850.      (`mail-send').
  851.  
  852. `C-c C-c'
  853.      Send the message, and select some other buffer
  854.      (`mail-send-and-exit').
  855.  
  856. `C-c C-f C-t'
  857.      Move to the `To' header field, creating one if there is none
  858.      (`mail-to').
  859.  
  860. `C-c C-f C-s'
  861.      Move to the `Subject' header field, creating one if there is none
  862.      (`mail-subject').
  863.  
  864. `C-c C-f C-c'
  865.      Move to the `CC' header field, creating one if there is none
  866.      (`mail-cc').
  867.  
  868. `C-c C-w'
  869.      Insert the file `~/.signature' at the end of the message text
  870.      (`mail-signature').
  871.  
  872. `C-c C-y'
  873.      Yank the selected message (`mail-yank-original').
  874.  
  875. `C-c C-q'
  876.      Fill all paragraphs of yanked old messages, each individually
  877.      (`mail-fill-yanked-message').
  878.  
  879. `<button3>'
  880.      Pops up a menu of useful mail-mode commands.
  881.  
  882.    There are two ways to send a message.  `C-c C-c'
  883. (`mail-send-and-exit') is the usual way to send the message.  It sends
  884. the message and then deletes the window (if there is another window) or
  885. switches to another buffer.  It puts the `*mail*' buffer at the lowest
  886. priority for automatic reselection, since you are finished with using
  887. it.  `C-c C-s' (`mail-send') sends the message and marks the `*mail*'
  888. buffer unmodified, but leaves that buffer selected so that you can
  889. modify the message (perhaps with new recipients) and send it again.
  890.  
  891.    Mail mode provides some other special commands that are useful for
  892. editing the headers and text of the message before you send it.  There
  893. are three commands defined to move point to particular header fields,
  894. all based on the prefix `C-c C-f' (`C-f' is for "field").  They are
  895. `C-c C-f C-t' (`mail-to') to move to the `To' field, `C-c C-f C-s'
  896. (`mail-subject') for the `Subject' field, and `C-c C-f C-c' (`mail-cc')
  897. for the `CC' field.  These fields have special motion commands because
  898. they are edited most frequently.
  899.  
  900.    `C-c C-w' (`mail-signature') adds a standard piece of text at the
  901. end of the message to say more about who you are.  The text comes from
  902. the file `.signature' in your home directory.
  903.  
  904.    When you use an Rmail command to send mail from the Rmail mail
  905. reader, you can use `C-c C-y' `mail-yank-original' inside the `*mail*'
  906. buffer to insert the text of the message you are replying to.  Normally
  907. Rmail indents each line of that message four spaces and eliminates most
  908. header fields.  A numeric argument specifies the number of spaces to
  909. indent.  An argument of just `C-u' says not to indent at all and not to
  910. eliminate anything.  `C-c C-y' always uses the current message from the
  911. `RMAIL' buffer, so you can insert several old messages by selecting one
  912. in `RMAIL', switching to `*mail*' and yanking it, then switching back
  913. to `RMAIL' to select another.
  914.  
  915.    After using `C-c C-y', you can use the command `C-c C-q'
  916. (`mail-fill-yanked-message') to fill the paragraphs of the yanked old
  917. message or messages.  One use of `C-c C-q' fills all such paragraphs,
  918. each one separately.
  919.  
  920.    Clicking the right mouse button in a mail buffer pops up a menu of
  921. the above commands, for easy access.
  922.  
  923.    Turning on Mail mode (which `C-x m' does automatically) calls the
  924. value of `text-mode-hook', if it is not void or `nil', and then calls
  925. the value of `mail-mode-hook' if that is not void or `nil'.
  926.  
  927. 
  928. File: xemacs.info,  Node: Reading Mail,  Next: Calendar/Diary,  Prev: Sending Mail,  Up: Top
  929.  
  930. Reading Mail
  931. ************
  932.  
  933.    XEmacs provides three separate mail-reading packages.  Each one
  934. comes with its own manual, which is included standard with the XEmacs
  935. distribution.
  936.  
  937.    The recommended mail-reading package for new users is VM.  VM works
  938. with standard Unix-mail-format folders and was designed as a replacement
  939. for the older Rmail.
  940.  
  941.    XEmacs also provides a sophisticated and comfortable front-end to the
  942. MH mail-processing system, called `mh-e'.  Unlike in other mail
  943. programs, folders in MH are stored as file-system directories, with
  944. each message occupying one (numbered) file.  This facilitates working
  945. with mail using shell commands, and many other features of MH are also
  946. designed to integrate well with the shell and with shell scripts.  Keep
  947. in mind, however, that in order to use mh-e you must have the MH
  948. mail-processing system installed on your computer.
  949.  
  950.    Finally, XEmacs provides the Rmail package.  Rmail is (currently) the
  951. only mail reading package distributed with FSF GNU Emacs, and is
  952. powerful in its own right.  However, it stores mail folders in a special
  953. format called `Babyl', that is incompatible with all other
  954. frequently-used mail programs.  A utility program is provided for
  955. converting Babyl folders to standard Unix-mail format; however, unless
  956. you already have mail in Babyl-format folders, you should consider
  957. using VM or mh-e instead. (If at times you have to use FSF Emacs, it is
  958. not hard to obtain and install VM for that editor.)
  959.  
  960. 
  961. File: xemacs.info,  Node: Calendar/Diary,  Next: Sorting,  Prev: Reading Mail,  Up: Top
  962.  
  963. Calendar Mode and the Diary
  964. ===========================
  965.  
  966.    Emacs provides the functions of a desk calendar, with a diary of past
  967. or planned events.  Display the calendar by typing `M-x calendar'.
  968. This command creates a window containing a three-month calendar centered
  969. on the current month, with point on the current date.  Or, provide a
  970. prefix argument by typing `C-u M-x calendar'; then you are prompted for
  971. the month and year to be the center of the three-month calendar.  In
  972. either case, you are now in Calendar mode.
  973.  
  974.    Calendar mode makes it easy to look at the holidays or diary entries
  975. associated with various dates, and to change the diary entries.  You
  976. can move freely between the Calendar window and other windows.  To exit
  977. the calendar, type `q'.
  978.  
  979. * Menu:
  980.  
  981. * Calendar Motion::        Moving through the calendar; selecting a date.
  982. * Scroll Calendar::        Bringing earlier or later months onto the screen.
  983. * Mark and Region::        Remembering dates, the mark ring.
  984. * General Calendar::       Conveniences for moving about.
  985. * Holidays::               Displaying dates of holidays.
  986. * Sunrise/Sunset::         Displaying local times of sunrise and sunset.
  987. * Lunar Phases::           Displaying phases of the moon.
  988. * Other Calendars::        Converting dates to other calendar systems.
  989. * Diary::                  Displaying events from your diary.
  990. * Calendar Customization:: Altering the behavior of the features above.
  991.  
  992. 
  993. File: xemacs.info,  Node: Calendar Motion,  Next: Scroll Calendar,  Prev: Calendar/Diary,  Up: Calendar/Diary
  994.  
  995. Movement in the Calendar
  996. ------------------------
  997.  
  998.    Calendar mode lets you move in logical units of time such as days,
  999. weeks, months, and years.  Sometimes you need to move to a specific date
  1000. in order to enter commands affecting its display or the associated diary
  1001. entries.  If you move outside the three months originally displayed, the
  1002. calendar display scrolls automatically through time.
  1003.  
  1004. * Menu:
  1005.  
  1006. * Calendar Unit Motion::       Moving by days, weeks, months, and years.
  1007. * Move to Beginning or End::   Moving to start/end of weeks, months, and years.
  1008. * Specified Dates::            Moving to the current date or another specific date.
  1009.  
  1010. 
  1011. File: xemacs.info,  Node: Calendar Unit Motion,  Next: Move to Beginning or End,  Prev: Calendar Motion,  Up: Calendar Motion
  1012.  
  1013. Motion by Integral Days, Weeks, Months, Years
  1014. .............................................
  1015.  
  1016.    The commands for movement in the calendar buffer parallel the
  1017. commands for movement in text.  You can move forward and backward by
  1018. days, weeks, months, and years.
  1019.  
  1020. `C-f'
  1021.      Move point one day forward (`calendar-forward-day').
  1022.  
  1023. `C-b'
  1024.      Move point one day backward (`calendar-backward-day').
  1025.  
  1026. `C-n'
  1027.      Move point one week forward (`calendar-forward-week').
  1028.  
  1029. `C-p'
  1030.      Move point one week backward (`calendar-backward-week').
  1031.  
  1032. `M-}'
  1033.      Move point one month forward (`calendar-forward-month').
  1034.  
  1035. `M-{'
  1036.      Move point one month backward (`calendar-backward-month').
  1037.  
  1038. `C-x ]'
  1039.      Move point one year forward (`calendar-forward-year').
  1040.  
  1041. `C-x ['
  1042.      Move point one year backward (`calendar-forward-year').
  1043.  
  1044.    The day and week commands are natural analogues of the usual Emacs
  1045. commands for moving by characters and by lines.  Just as `C-n' usually
  1046. moves to the same column in the following line, in Calendar mode it
  1047. moves to the same day in the following week.  And `C-p' moves to the
  1048. same day in the previous week.
  1049.  
  1050.    The commands for motion by months and years work like those for
  1051. weeks, but move a larger distance.  The month commands `M-}' and `M-{'
  1052. move forward or backward by an entire month's time.  The year commands
  1053. `C-x ]' and `C-x [' move forward or backward a whole year.
  1054.  
  1055.    The easiest way to remember these commands is to consider months and
  1056. years analogous to paragraphs and pages of text, respectively.  But the
  1057. commands themselves are not quite analogous.  The ordinary Emacs
  1058. paragraph commands move to the beginning or end of a paragraph, whereas
  1059. these month and year commands move by an entire month or an entire
  1060. year, which usually involves skipping across the end of a month or year.
  1061.  
  1062.    Each of these commands accepts a numeric argument as a repeat count.
  1063. For convenience, the digit keys and the minus sign are bound in
  1064. Calendar mode so that it is unnecessary to type the `M-' prefix.  For
  1065. example, `100 C-f' moves point 100 days forward from its present
  1066. location.
  1067.  
  1068. 
  1069. File: xemacs.info,  Node: Move to Beginning or End,  Next: Specified Dates,  Prev: Calendar Unit Motion,  Up: Calendar Motion
  1070.  
  1071. Beginning or End of Week, Month or Year
  1072. .......................................
  1073.  
  1074.    A week (or month, or year) is not just a quantity of days; we think
  1075. of new weeks (months, years) as starting on particular days.  So
  1076. Calendar mode provides commands to move to the beginning or end of the
  1077. week, month or year:
  1078.  
  1079. `C-a'
  1080.      Move point to beginning of week (`calendar-beginning-of-week').
  1081.  
  1082. `C-e'
  1083.      Move point to end of week (`calendar-end-of-week').
  1084.  
  1085. `M-a'
  1086.      Move point to beginning of month (`calendar-beginning-of-month').
  1087.  
  1088. `M-e'
  1089.      Move point to end of month (`calendar-end-of-month').
  1090.  
  1091. `M-<'
  1092.      Move point to beginning of year (`calendar-beginning-of-year').
  1093.  
  1094. `M->'
  1095.      Move point to end of year (`calendar-end-of-year').
  1096.  
  1097.    These commands also take numeric arguments as repeat counts, with the
  1098. repeat count indicating how many weeks, months, or years to move
  1099. backward or forward.
  1100.  
  1101. 
  1102. File: xemacs.info,  Node: Specified Dates,  Prev: Move to Beginning or End,  Up: Calendar Motion
  1103.  
  1104. Particular Dates
  1105. ................
  1106.  
  1107.    Calendar mode provides some commands for getting to a particular date
  1108. quickly.
  1109.  
  1110. `g d'
  1111.      Move point to specified date (`calendar-goto-date').
  1112.  
  1113. `o'
  1114.      Center calendar around specified month (`calendar-other-month').
  1115.  
  1116. `.'
  1117.      Move point to today's date (`calendar-current-month').
  1118.  
  1119.    `g d' (`calendar-goto-date') prompts for a year, a month, and a day
  1120. of the month, and then goes to that date.  Because the calendar
  1121. includes all dates from the beginning of the current era, you must type
  1122. the year in its entirety; that is, type `1990', not `90'.
  1123.  
  1124.    `o' (`calendar-other-month') prompts for a month and year, then
  1125. centers the three-month calendar around that month.
  1126.  
  1127.    You can return to the current date with `.'
  1128. (`calendar-current-month').
  1129.  
  1130. 
  1131. File: xemacs.info,  Node: Scroll Calendar,  Next: Mark and Region,  Prev: Calendar Motion,  Up: Calendar/Diary
  1132.  
  1133. Scrolling the Calendar through Time
  1134. -----------------------------------
  1135.  
  1136.    The calendar display scrolls automatically through time when you
  1137. move out of the visible portion.  You can also scroll it manually.
  1138. Imagine that the calendar window contains a long strip of paper with
  1139. the months on it.  Scrolling it means moving the strip so that new
  1140. months become visible in the window.
  1141.  
  1142. `C-x <'
  1143.      Scroll calendar one month forward (`scroll-calendar-left').
  1144.  
  1145. `C-x >'
  1146.      Scroll calendar one month backward (`scroll-calendar-right').
  1147.  
  1148. `C-v'
  1149.      Scroll calendar three months forward
  1150.      (`scroll-calendar-left-three-months').
  1151.  
  1152. `M-v'
  1153.      Scroll calendar three months backward
  1154.      (`scroll-calendar-right-three-months').
  1155.  
  1156.    The most basic calendar scroll commands scroll by one month at a
  1157. time.  This means that there are two months of overlap between the
  1158. display before the command and the display after.  `C-x <' scrolls the
  1159. calendar contents one month to the left; that is, it moves the display
  1160. forward in time.  `C-x >' scrolls the contents to the right, which
  1161. moves backwards in time.
  1162.  
  1163.    The commands `C-v' and `M-v' scroll the calendar by an entire
  1164. "screenful"--three months--in analogy with the usual meaning of these
  1165. commands.  `C-v' makes later dates visible and `M-v' makes earlier
  1166. dates visible.  These commands also take a numeric argument as a repeat
  1167. count; in particular, since `C-u' (`universal-argument') multiplies the
  1168. next command by four, typing `C-u C-v' scrolls the calendar forward by
  1169. a year and typing `C-u M-v' scrolls the calendar backward by a year.
  1170.  
  1171.    Any of the special Calendar mode commands scrolls the calendar
  1172. automatically as necessary to ensure that the date you have moved to is
  1173. visible.
  1174.  
  1175.